package com.example.boot.tstype.dao;

import org.apache.ibatis.annotations.Param;

import com.example.boot.tstype.model.TSType;

public interface TSTypeMapper {
    int deleteByPrimaryKey(String id);

    int insert(TSType record);

    int insertSelective(TSType record);

    TSType selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(TSType record);

    int updateByPrimaryKey(TSType record);
    
    /**
     * 根据Id和状态type
     * @param id
     * @param type
     * @return
     */
    TSType byIdAndTypeFind(@Param("id")String id,@Param("type")Integer type);

}